package com.zx.springcloud.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author ZX
 * @date 2021/3/2
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonResult<T>
{
     //404  not_found
     //200  success

     private  Integer code;
     private  String message;
     private  T data;

     public CommonResult(Integer code, String message){
          this(code,message,null);
     }
}
